package com.nzw.dubbo;

/**
 * Created by shuyun on 2016/7/20.
 */
public class ThreadDemo implements Runnable {
    @Override
    public void run() {
        while (true) {
            for (int i = 1; i <= 100; i++) {
                System.out.println(Thread.currentThread().getName() + "：" + i);
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
